import os
from wsgiref.simple_server import WSGIServer

from flask import Flask, jsonify, request, json, session
from flask_cors import CORS

import form.formView
from employee.employeeView import employee

from Login.loginView import user
from adminMngt.adminOper import admin
from oldMngt.oldOper import old
from volunteer.vlolunteerView import volunteer
from form.formView import form

app = Flask(__name__)

app.register_blueprint(user)
app.register_blueprint(admin)
app.register_blueprint(old)
app.register_blueprint(employee)
app.register_blueprint(volunteer)
app.register_blueprint(form)
CORS(app)

if __name__ == '__main__':
    app.run()
    http_sever = WSGIServer(('', 5000), app)
    http_sever.serve_forever()
